package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author pjc
 * @since 2021-06-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sk_information")
@ApiModel(value = "SkInformation对象", description = "")
public class SkInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "上课id")
    @TableId(value = "sk_id", type = IdType.AUTO)
    private Integer skId;

    @ApiModelProperty(value = "课程id")
    @TableField("kc_id")
    private Integer kcId;

    @ApiModelProperty(value = "课程_学生id")
    @TableField("kc_s_id")
    private Integer kcSId;

    @ApiModelProperty(value = "课程_老师_id（实训老师）")
    @TableField("kc_t_id")
    private String kcTId;

    @ApiModelProperty(value = "签到时间")
    @TableField("kc_in_time")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
    private Date kcInTime;

    @ApiModelProperty(value = "签退时间")
    @TableField("kc_out_time")
    @JsonFormat(pattern = "HH:mm:ss", timezone = "Asia/Shanghai")
    private Date kcOutTime;

    @ApiModelProperty(value = "教室")
    @TableField("kc_classroom")
    private String kcClassroom;

    @ApiModelProperty(value = "备注")
    @TableField("kc_remarks")
    private String kcRemarks;

    @ApiModelProperty(value = "日期")
    @TableField("kc_date")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Shanghai")
    private Date kcDate;

    @ApiModelProperty("课程")
    @TableField(exist = false)
    private KcInformation kcInformation;

    @ApiModelProperty("实训老师")
    @TableField(exist = false)
    private KcTInformation kcTInformation;

    @ApiModelProperty("责任老师")
    @TableField(exist = false)
    private TInformation tInformation;
}
